<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>导航条</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="https://cdn.bootcss.com/zui/1.7.0/css/zui.min.css" rel="stylesheet">
</head>

<body>

    <div id="page" class="">
      
        
            <div class="container">
                <div id="pageContent">
                    <section>
                        <header>
                            <h3>简单导航条</h3>
                        </header>
                        <article>
                            <div class="example">
                                <nav class="navbar" role="navigation">
                                    <div class="container-fluid">
                                        <!-- 导航头部 -->
                                        <div class="navbar-header">
                                            <!-- 移动设备上的导航切换按钮 -->
                                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
                                                <span class="sr-only">切换导航</span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                            </button>
                                            <!-- 品牌名称或logo -->
                                            <a class="navbar-brand" href="#">ZUI</a>
                                        </div>
                                        <!-- 导航项目 -->
                                        <div class="collapse navbar-collapse navbar-collapse-example">
                                            <!-- 一般导航项目 -->
                                            <ul class="nav navbar-nav">
                                                <li class="active">
                                                    <a href="#">项目</a>
                                                </li>
                                                <li>
                                                    <a href="#">需求</a>
                                                </li>
                                                <li>
                                                    <a href="#">测试</a>
                                                </li>
                                                <!-- 导航中的下拉菜单 -->
                                                <li class="dropdown">
                                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">管理
                                                        <b class="caret"></b>
                                                    </a>
                                                    <ul class="dropdown-menu" role="menu">
                                                        <li>
                                                            <a href="#">任务</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">待办</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Bug</a>
                                                        </li>
                                                        <li class="divider"></li>
                                                        <li>
                                                            <a href="#">用例</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </div>
                                        <!-- END .navbar-collapse -->
                                    </div>
                                </nav>
                            </div>
                        </article>
                    </section>




                    <section>
                        <header>
                            <h3>默认导航条</h3>
                        </header>
                        <article>
                            <div class="example">
                                <nav class="navbar navbar-default" role="navigation">
                                    <div class="container-fluid">
                                        <!-- 导航头部 -->
                                        <div class="navbar-header">
                                            <!-- 移动设备上的导航切换按钮 -->
                                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
                                                <span class="sr-only">切换导航</span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                            </button>
                                            <!-- 品牌名称或logo -->
                                            <a class="navbar-brand" href="#">ZUI</a>
                                        </div>
                                        <!-- 导航项目 -->
                                        <div class="collapse navbar-collapse navbar-collapse-example">
                                            <!-- 一般导航项目 -->
                                            <ul class="nav navbar-nav">
                                                <li class="active">
                                                    <a href="#">项目</a>
                                                </li>
                                                <li>
                                                    <a href="#">需求</a>
                                                </li>
                                                <!-- 导航中的下拉菜单 -->
                                                <li class="dropdown">
                                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">管理
                                                        <b class="caret"></b>
                                                    </a>
                                                    <ul class="dropdown-menu" role="menu">
                                                        <li>
                                                            <a href="#">任务</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">待办</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Bug</a>
                                                        </li>
                                                        <li class="divider"></li>
                                                        <li>
                                                            <a href="#">测试</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">用例</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </div>
                                        <!-- END .navbar-collapse -->
                                    </div>
                                </nav>
                            </div>
                        </article>
                    </section>
                    <section>
                        <header>
                            <h3>深色导航条</h3>
                        </header>
                        <article>
                            <div class="example">
                                <nav class="navbar navbar-inverse" role="navigation">
                                    <div class="container-fluid">
                                        <!-- 导航头部 -->
                                        <div class="navbar-header">
                                            <!-- 移动设备上的导航切换按钮 -->
                                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
                                                <span class="sr-only">切换导航</span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                            </button>
                                            <!-- 品牌名称或logo -->
                                            <a class="navbar-brand" href="#">ZUI</a>
                                        </div>
                                        <!-- 导航项目 -->
                                        <div class="collapse navbar-collapse navbar-collapse-example">
                                            <!-- 一般导航项目 -->
                                            <ul class="nav navbar-nav">
                                                <li class="active">
                                                    <a href="#">项目</a>
                                                </li>
                                                <li>
                                                    <a href="#">需求</a>
                                                </li>
                                                <!-- 导航中的下拉菜单 -->
                                                <li class="dropdown">
                                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">管理
                                                        <b class="caret"></b>
                                                    </a>
                                                    <ul class="dropdown-menu" role="menu">
                                                        <li>
                                                            <a href="#">任务</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">待办</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Bug</a>
                                                        </li>
                                                        <li class="divider"></li>
                                                        <li>
                                                            <a href="#">测试</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">用例</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </div>
                                        <!-- END .navbar-collapse -->
                                    </div>
                                </nav>
                            </div>
                        </article>
                    </section>
                    <section>
                        <header>
                            <h3>使用表单元素</h3>
                        </header>
                        <article>
                            <div class="example">
                                <nav class="navbar navbar-default" role="navigation">
                                    <div class="container-fluid">
                                        <!-- 导航头部 -->
                                        <div class="navbar-header">
                                            <!-- 移动设备上的导航切换按钮 -->
                                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
                                                <span class="sr-only">切换导航</span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                            </button>
                                            <!-- 品牌名称或logo -->
                                            <a class="navbar-brand" href="#">ZUI</a>
                                        </div>
                                        <!-- 导航项目 -->
                                        <div class="collapse navbar-collapse navbar-collapse-example">
                                            <!-- 一般导航项目 -->
                                            <ul class="nav navbar-nav">
                                                <li class="active">
                                                    <a href="#">项目</a>
                                                </li>
                                                <li>
                                                    <a href="#">需求</a>
                                                </li>
                                                <!-- 导航中的下拉菜单 -->
                                                <li class="dropdown">
                                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">管理
                                                        <b class="caret"></b>
                                                    </a>
                                                    <ul class="dropdown-menu" role="menu">
                                                        <li>
                                                            <a href="#">任务</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">待办</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Bug</a>
                                                        </li>
                                                        <li class="divider"></li>
                                                        <li>
                                                            <a href="#">测试</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">用例</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                            <!-- 导航中的表单 -->
                                            <form class="navbar-form navbar-left" role="search">
                                                <div class="form-group">
                                                    <input type="text" class="form-control" placeholder="搜索">
                                                </div>
                                                <button type="submit" class="btn btn-default">搜索</button>
                                            </form>
                                        </div>
                                        <!-- END .navbar-collapse -->
                                    </div>
                                </nav>
                            </div>
                        </article>
                    </section>



                    <section>
                        <header>
                            <h3>将内容放置与导航右侧</h3>
                        </header>
                        <article>
                            <div class="example">
                                <nav class="navbar navbar-default" role="navigation">
                                    <div class="container-fluid">
                                        <!-- 导航头部 -->
                                        <div class="navbar-header">
                                            <!-- 移动设备上的导航切换按钮 -->
                                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
                                                <span class="sr-only">切换导航</span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                                <span class="icon-bar"></span>
                                            </button>
                                            <!-- 品牌名称或logo -->
                                            <a class="navbar-brand" href="#">ZUI</a>
                                        </div>
                                        <!-- 导航项目 -->
                                        <div class="collapse navbar-collapse navbar-collapse-example">
                                            <!-- 一般导航项目 -->
                                            <ul class="nav navbar-nav">
                                                <li class="active">
                                                    <a href="#">项目</a>
                                                </li>
                                                <li>
                                                    <a href="#">需求</a>
                                                </li>
                                                <!-- 导航中的下拉菜单 -->
                                                <li class="dropdown">
                                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">管理
                                                        <b class="caret"></b>
                                                    </a>
                                                    <ul class="dropdown-menu" role="menu">
                                                        <li>
                                                            <a href="#">任务</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">待办</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Bug</a>
                                                        </li>
                                                        <li class="divider"></li>
                                                        <li>
                                                            <a href="#">测试</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">用例</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                            <!-- 右侧的导航项目 -->
                                            <ul class="nav navbar-nav navbar-right">
                                                <li>
                                                    <a href="#">帮助</a>
                                                </li>
                                                <li class="dropdown">
                                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">探索
                                                        <b class="caret"></b>
                                                    </a>
                                                    <ul class="dropdown-menu" role="menu">
                                                        <li>
                                                            <a href="#">敏捷开发</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">HTML5</a>
                                                        </li>
                                                        <li>
                                                            <a href="#">Javascript</a>
                                                        </li>
                                                        <li class="divider"></li>
                                                        <li>
                                                            <a href="#">探索宇宙</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </div>
                                        <!-- END .navbar-collapse -->
                                    </div>
                                </nav>
                            </div>
                        </article>
                    </section>
                    <script>
                        function afterPageLoad() {
                            $('#pageContent').on('click', '.navbar-nav > li > a', function () {
                                var $item = $(this).parent('li');
                                $item.parent().children('.active').removeClass('active');
                                $item.addClass('active');
                            });
                        }
                    </script>
                    <section>
                        <header>
                            <h3>自适应宽度</h3>
                        </header>
                        <article>
                            <div class="example">
                                <nav class="navbar navbar-default" role="navigation">
                                    <ul class="nav navbar-nav nav-justified">
                                        <li>
                                            <a href="###">首页</a>
                                        </li>
                                        <li>
                                            <a href="###">项目</a>
                                        </li>
                                        <li class="active">
                                            <a href="###">需求</a>
                                        </li>
                                        <li>
                                            <a href="###">测试</a>
                                        </li>
                                        <li>
                                            <a href="###">任务</a>
                                        </li>
                                        <li>
                                            <a href="###">论坛</a>
                                        </li>
                                        <li>
                                            <a href="###">帮助</a>
                                        </li>
                                        <li>
                                            <a href="###">探索</a>
                                        </li>
                                    </ul>
                                </nav>
                            </div>
                        </article>
                    </section>
                </div>
                <nav></nav>
            </div>
        </div>
    </div>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/zui/1.7.0/js/zui.min.js"></script>
</body>

</html>